package com.yehangtech.algorithm.算法基础篇.第一讲m基础算法;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Main {
    public static void main(String[] args) {
        List<Integer> collect = Stream.of(1, 2, 3, 4).collect(Collectors.toList());
        List<Integer> list = collect.subList(0, 2);
        System.out.println();
    }
}
